package UML;

public class TestInterface {
    public static void main(String[] args) {
        Loong loong = new Loong("Ao Guang","Black Loong");
        Thrush thrush = new Thrush("Ali");
        CanSwim canSwim = loong;
        canSwim.swim();
        CanFlight canFlight = loong;
        canFlight.flight();
        canFlight = thrush;
        canFlight.flight();
        Bird bird = thrush;
        bird.eat();
        bird.flight();
        bird.sound();
    }
}